package com.ruoyi.basic.service;

import java.util.List;

import com.ruoyi.basic.domain.BasicPost;
import com.ruoyi.basic.domain.BasicTrain;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 培训经历Service接口
 * 
 * @author ruoyi
 * @date 2021-08-23
 */
public interface IBasicTrainService extends IService<BasicTrain>
{
    /**
     * 查询培训经历
     * 
     * @param trainId 培训经历主键
     * @return 培训经历
     */
    public BasicTrain selectBasicTrainByTrainId(Long trainId);

    /**
     * 查询培训经历
     *
     * @param trainIds 培训经历主键
     * @return 培训经历
     */
    public List<BasicTrain> selectBasicTrainByTrainIds(String trainIds);

    /**
     * 查询培训经历列表
     * 
     * @param basicTrain 培训经历
     * @return 培训经历集合
     */
    public List<BasicTrain> selectBasicTrainList(BasicTrain basicTrain);

    /**
     * 新增培训经历
     * 
     * @param basicTrain 培训经历
     * @return 结果
     */
    public int insertBasicTrain(BasicTrain basicTrain);

    /**
     * 修改培训经历
     * 
     * @param basicTrain 培训经历
     * @return 结果
     */
    public int updateBasicTrain(BasicTrain basicTrain);

    /**
     * 批量删除培训经历
     * 
     * @param trainIds 需要删除的培训经历主键集合
     * @return 结果
     */
    public int deleteBasicTrainByTrainIds(String trainIds);

    /**
     * 删除培训经历信息
     * 
     * @param trainId 培训经历主键
     * @return 结果
     */
    public int deleteBasicTrainByTrainId(Long trainId);

    /**
     * 导入员工培训经历
     *
     * @param trainList 员工培训经历列表
     * @param operName 操作用户
     * @return 结果
     */
    public String importTrain(List<BasicTrain> trainList, Boolean isUpdateSupport, String operName);
}
